<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015-5-20
 * Time: 9:55
 * 此文件用于实现单文件上传功能，为ImageUploadSingle.php提供资源
 */

namespace doumiaoduo\ueditor;


use yii\web\AssetBundle;

class ImageUploadWechatAsset extends AssetBundle{

    public $sourcePath = '@doumiaoduo/ueditor/assets';

    public $css = [
        'ueditor/third-party/webuploader/webuploader.css'
    ];

    public $depends = [
        'yii\web\JqueryAsset',
    ];

    public function init(){
        $js=YII_DEBUG?['http://res.wx.qq.com/open/js/jweixin-1.0.0.js','ueditor/third-party/ajaxfileupload.js']:['http://res.wx.qq.com/open/js/jweixin-1.0.0.js','ueditor/third-party/ajaxfileupload.js'];
        $this->js=$js;
    }

}